package org.zhu.userquery.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhu yingzhi on 2017/8/30.
 */
@RestController
public class IndexController {
    @RequestMapping(value = "hello",method = RequestMethod.GET)
    private String hello(){
        return "hello user query";
    }


    @RequestMapping(value = "getName",method = RequestMethod.GET)
    private String getName() throws InterruptedException {
        String ss = "";
        Thread.sleep(1000);
        return "MAMA";
    }
}
